<template>
  <el-button :size="size" v-bind="$attrs" v-on="$listeners" @click="handleAnimation" ref="btn">
    <slot></slot>
  </el-button>
</template>

<script>
  export default {
    name: "my-button",
    props:{
      /** 默认大小mini **/
      size:{
        type: String,
        default: 'mini'
      }
    },
    methods:{
      /** 果冻动画 **/
      handleAnimation(){
        this.setAnimation('btn','jello-horizontal',900)
      }
    }
  }
</script>

<style scoped>
</style>
